package com.aat.dizena.base.service.impl;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aat.dizena.base.bean.User;
import com.aat.dizena.base.dao.UserDao;
import com.aat.dizena.base.service.UserService;

@Service
public class UserServiceImpl  implements UserService {

    @Autowired
    private UserDao userDao;

    public int addBean(User bean){
        return userDao.addBean(bean);
    }

    public int updateBean(User bean){
        return userDao.updateBean(bean);
    }

    public int deleteBean(String id){
        return userDao.deleteBean(id);
    }

    public User queryBean(String id){
        return userDao.queryBean(id);
    }

    public List<User> queryAll(Map<String, Object> map){
        return userDao.queryAll(map);
    }

    public long queryCount(Map<String, Object> map){
        return userDao.queryCount(map);
    }

	public User queryUserLogin(String account) {
		return userDao.queryUserLogin(account);
	}

}
